package com.common.exception;

import lombok.Getter;

@Getter
public class CommonException extends RuntimeException{
    private Integer code;
    private String msg;
    public CommonException(String msg, Integer code){
        super(msg);
        this.code=code;
    }
    public CommonException(String msg, Throwable cause,Integer code){
        super(msg,cause);
        this.code=code;
    }
    public CommonException(Throwable cause,Integer code){
        super(cause);
        this.code=code;

    }
}
